package com.disapand.strongarmy.model

import org.ktorm.database.*
import org.ktorm.entity.*
import org.ktorm.schema.*

/**
 *
 * @auth disapand
 * @date 2021/11/5 - 20:33 - 星期五
 *
 */
object RoleMenus : Table<Nothing>("sa_role_menu") {
    val id = int("id").primaryKey()
    val role = int("role_id")
    val menu = int("menu_id")
    val status = int("status")
    val deleted = boolean("deleted")
    val createdBy = int("created_by")
    val createdAt = datetime("created_at")
    val updatedBy = int("updated_by")
    val updatedAt = datetime("updated_at")
}

val Database.roleMenus get() = this.sequenceOf(RoleMenus)